<div class="page-header">
	<ul id="table-tab" class="nav nav-tabs" role="tablist">
		<li role="presentation" class="active"><a href="#log-tab"
			aria-controls="log-tab" role="tab" data-toggle="tab">日志监控</a>
		</li>
	</ul>
</div>
<div class="tab-content">
	<div id="log-tab" class="tab-pane active" role="tabpanel">
		<div class="row">
            <!--搜索域-->
            <div class="col-xs-12">
            	<div class="search-area">
            		<form id="table-log-search" class="form-inline">
                        <div class="form-group">
                            <label for="log.username">操作人：</label>
                            <input type="text" class="form-control input-sm" id="log.username" name="log.username" value="" placeholder="">
                        </div>
                        <div class="form-group">
                            <label for="log.name">操作URL：</label>
                            <input type="text" class="form-control input-sm" id="log.name" name="log.name" value="" placeholder="">
                        </div>
                        <div class="form-group">
                            <label for="log.name">操作方法：</label>
                            <input type="text" class="form-control input-sm" id="log.action" name="log.action" value="" placeholder="">
                        </div>
                        <div class="form-group">
                            <label for="log.ipaddr">操作IP：</label>
                            <input type="text" class="form-control input-sm" id="log.ipaddr" name="log.ipaddr" value="" placeholder="">
                        </div>
	                    <button id="btn-log-search" type="button" class="btn btn-info btn-sm no-border">
	                    	<i class="ace-icon fa fa-search bigger-110"></i>查询
	                    </button>
	                    <div class="form-group pull-right">
                    		<span>查询方式：</span>
                           	<label class="radio-inline">
                           		<input type="radio" name="searchType" value="1" checked="checked"/>精确
                           	</label>
                           	<label class="radio-inline">
                           		<input type="radio" name="searchType" value="0"/>模糊
                           	</label>
                        </div>
                    </form>
                </div>
            </div>
        </div>
		<!-- 数据表格 -->
        <div class="row">
            <div class="col-xs-12">
            	<div id="table-log-toolbar">
            		<div class="btn-group btn-group-sm">
            		
	                   <button id="delaccount" class="btn btn-danger btn-sm no-border"
							onclick="doDels('system/monitor/log/deletes', 'table-log');">
							<i class="ace-icon fa fa-trash-o bigger-110"></i>删除
						</button>
                    </div>
                </div>
            	<table id="table-log" 
            			data-toolbar="#table-log-toolbar" 
            			data-sort-name="create_time" 
            			data-sort-order="desc"
            			data-show-columns="true"
            			data-id-field="uuid">
            		 <thead>
                        <tr>
                            <th data-field="state" data-checkbox="true"></th>
                            <th data-width="120" data-field="name" data-align="left" data-sortable="false">业务名/业务URL</th>
                            <th data-width="120" data-field="action" data-align="left" data-sortable="true">操作方法</th>
                            <th data-width="120" data-field="ipaddr" data-align="left" data-sortable="true">操作IP</th>
                            <th data-width="120" data-field="username" data-align="left" data-sortable="true">操作人</th>
                            <th data-width="100" data-field="type" data-align="left" data-sortable="false">日志类型</th>
                            <th data-width="160" data-field="create_time" data-align="left" data-sortable="true">操作时间</th>
                            <th data-field="remark" data-align="left" data-sortable="false">操作描述</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	initTableList('table-log','system/monitor/log/dataGrid', 'table-log-search', 'btn-log-search');
});
</script>
